<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var arr = [12, 24, 2, 56, 75, 37, 98, 65]
        var arr1 = arr.forEach(item => {
            console.log(item + 1);
            return item + 1
        })
        console.log(arr);
        var arr2 = arr.map(item => {
            console.log(item + 1);
            return item + 1
        })
        console.log(arr);
        console.log(arr1);
        console.log(arr2);

        var arr3 = arr.slice(2)
        console.log(arr);
        arr.splice(1, 0, 33)
        console.log(arr);
        console.log(arr3);
        console.log(arr.some(item => {
            return item > 90
        }));
        console.log( arr.every( item => {
            item > 33
        }));
    </script>
</body>

</html>